# Python 2.6.4
# Project Euler, Problem 19
# Copyright 2010 Talha Zaman

from datetime import date
count = 0
for year in range(1901, 2001):
    for month in range(1,13):
        if date(year, month, 1).weekday()==6: count += 1
print count
